﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Threading;

namespace Rbac.Project.Mvc.Controllers
{
    public class DefaultController : Controller
    {
        public IActionResult Index()
        {
            return View();
        }

        public IActionResult AjaxRequest()
        {
            Thread.Sleep(TimeSpan.FromSeconds(15));
            return Ok(new
            {
                msg = "success"
            });
        }
    }
}
